/*
 * cli.h
 *
 * Created: 08/01/2014 11:09:39
 *  Author: usuario
 */ 


#ifndef CLI_H_
#define CLI_H_


#define	CLI_USART_BASE		USART3
#define CLI_SPEED			4800 // max serial orange speed -> 600 bytes/seg -> 1,6 ms/byte.

#define cmdMAX_INPUT_SIZE	64

#define CLI_READ_MAX_BLOCK_TIME		( 200   *  portTICK_RATE_MS		) // upper round (1/(CLI_SPEED/8))*cmdMAX_INPUT_SIZE                   * 1000 *  portTICK_RATE_MS		)
#define CLI_WRITE_MAX_BLOCK_TIME	( 2000  *  portTICK_RATE_MS		) // low round   (1/(CLI_SPEED/8))*configCOMMAND_INT_MAX_OUTPUT_SIZE   * 1000 *  portTICK_RATE_MS		)


void CLI_setup ( void );


#endif /* CLI_H_ */